#include "bga/graphics/RepereDrawable.h"

namespace bga
{

float RepereDrawable::vertex[4*3] = {0.f, 0.f, 0.f,
                               1.f, 0.f, 0.f,
                               0.f, 1.f, 0.f,
                               0.f, 0.f, 1.f};

float RepereDrawable::color[4*3] = {1.f, 1.f, 1.f,
                              1.f, 0.f, 0.f,
                              0.f, 1.f, 0.f,
                              0.f, 0.f, 1.f};

unsigned short RepereDrawable::index[6] = {0, 1,
                                    0, 2,
                                    0, 3};

RepereDrawable::RepereDrawable() : Drawable()
{
    /*this->vertexArray = RepereDrawable::vertex;
    this->colorsArray = RepereDrawable::color;
    this->indexArray = RepereDrawable::index;
    this->primitive = GL_LINES;

    this->vertexArraySize = 4 * 3;
    this->colorsArraySize = 4 * 3;
    this->indexArraySize = 6;

    this->vertexArraySizeInByte = this->vertexArraySize * sizeof(float);
    this->colorsArraySizeInByte = this->colorsArraySize * sizeof(float);
    this->indexArraySizeInByte = this->indexArraySize * sizeof(unsigned char);*/

    this->setVertexArray(vertex, 4 * 3);
    this->setColorsArray(color, 4 * 3);
    this->setIndexArray(index, 6);

    this->primitive = GL_LINES;
}

RepereDrawable::~RepereDrawable()
{

}

}
